﻿using Newtonsoft.Json;
using Wechat.Core.Models;

namespace Wechat.MP.Auth.Models
{
    /// <summary>
    /// {    
    ///     "openid":" OPENID",
    ///     "nickname": NICKNAME,
    ///     "sex":"1",
    ///     "province":"PROVINCE"
    ///     "city":"CITY",
    ///     "country":"COUNTRY",
    ///     "headimgurl":"http://thirdwx.qlogo.cn/mmopen/g3MonUZtNHkdmzicIlibx6iaFqAc56vxLSUfpb6n5WKSYVY0ChQKkiaJSgQ1dZuTOgvLLrhJbERQQ4eMsv84eavHiaiceqxibJxCfHe/46",
    ///     "privilege":[ "PRIVILEGE1" "PRIVILEGE2"     ],
    ///     "unionid": "o6_bmasdasdsad6_2sgVt7hMZOPfL"
    /// }
    /// </summary>
    [JsonObject]
    public class UserInfoResponse : StandardResponse
    {
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("openid")]
        public string OpenID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("nickname")]
        public string NickName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("sex")]
        public string Sex { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("province")]
        public string Province { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("city")]
        public string City { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("country")]
        public string Country { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("headimgurl")]
        public string HeadImgUrl { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("unionid")]
        public string UnionID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("privilege")]
        public string[] Privilege { get; set; }
    }
}
